

import java.util.Collection;
import java.util.Iterator;
public abstract class JugadorIA extends Jugador {

	/**
	 * @uml.property  name="accionIA"
	 * @uml.associationEnd  multiplicity="(0 -1)" inverse="jugadorIA:AccionIA"
	 */
	private Collection accionIA;

	/**
	 * Getter of the property <tt>accionIA</tt>
	 * @return  Returns the accionIA.
	 * @uml.property  name="accionIA"
	 */
	public Collection getAccionIA() {
		return accionIA;
	}

	/**
	 * Returns an iterator over the elements in this collection. 
	 * @return  an <tt>Iterator</tt> over the elements in this collection
	 * @see java.util.Collection#iterator()
	 * @uml.property  name="accionIA"
	 */
	public Iterator accionIAIterator() {
		return accionIA.iterator();
	}

	/**
	 * Returns <tt>true</tt> if this collection contains no elements.
	 * @return  <tt>true</tt> if this collection contains no elements
	 * @see java.util.Collection#isEmpty()
	 * @uml.property  name="accionIA"
	 */
	public boolean isAccionIAEmpty() {
		return accionIA.isEmpty();
	}

	/**
	 * Returns <tt>true</tt> if this collection contains the specified element. 
	 * @param element  whose presence in this collection is to be tested.
	 * @see java.util.Collection#contains(Object)
	 * @uml.property  name="accionIA"
	 */
	public boolean containsAccionIA(AccionIA accionIA) {
		return this.accionIA.contains(accionIA);
	}

	/**
	 * Returns <tt>true</tt> if this collection contains all of the elements in the specified collection.
	 * @param elements  collection to be checked for containment in this collection.
	 * @see java.util.Collection#containsAll(Collection)
	 * @uml.property  name="accionIA"
	 */
	public boolean containsAllAccionIA(Collection accionIA) {
		return this.accionIA.containsAll(accionIA);
	}

	/**
	 * Returns the number of elements in this collection.
	 * @return  the number of elements in this collection
	 * @see java.util.Collection#size()
	 * @uml.property  name="accionIA"
	 */
	public int accionIASize() {
		return accionIA.size();
	}

	/**
	 * Returns all elements of this collection in an array.
	 * @return  an array containing all of the elements in this collection
	 * @see java.util.Collection#toArray()
	 * @uml.property  name="accionIA"
	 */
	public AccionIA[] accionIAToArray() {
		return (AccionIA[]) accionIA.toArray(new AccionIA[accionIA.size()]);
	}

	/**
	 * Returns an array containing all of the elements in this collection;  the runtime type of the returned array is that of the specified array.
	 * @param a  the array into which the elements of this collection are to be stored.
	 * @return  an array containing all of the elements in this collection
	 * @see java.util.Collection#toArray(Object[])
	 * @uml.property  name="accionIA"
	 */
	public AccionIA[] accionIAToArray(AccionIA[] accionIA) {
		return (AccionIA[]) this.accionIA.toArray(accionIA);
	}

	/**
	 * Ensures that this collection contains the specified element (optional operation). 
	 * @param element  whose presence in this collection is to be ensured.
	 * @see java.util.Collection#add(Object)
	 * @uml.property  name="accionIA"
	 */
	public boolean addAccionIA(AccionIA accionIA) {
		return this.accionIA.add(accionIA);
	}

	/**
	 * Setter of the property <tt>accionIA</tt>
	 * @param accionIA  the accionIA to set.
	 * @uml.property  name="accionIA"
	 */
	public void setAccionIA(Collection accionIA) {
		this.accionIA = accionIA;
	}

	/**
	 * Removes a single instance of the specified element from this collection, if it is present (optional operation).
	 * @param element  to be removed from this collection, if present.
	 * @see java.util.Collection#add(Object)
	 * @uml.property  name="accionIA"
	 */
	public boolean removeAccionIA(AccionIA accionIA) {
		return this.accionIA.remove(accionIA);
	}

	/**
	 * Removes all of the elements from this collection (optional operation).
	 * @see java.util.Collection#clear()
	 * @uml.property  name="accionIA"
	 */
	public void clearAccionIA() {
		this.accionIA.clear();
	}

}
